#chu vi va dien tich
import math
import cStringIO
# Hinh vuong
"""Tinh dien tich hinh vuong"""
def squareA(a):
    return "%0.2f" %(a*a)
"""Tinh chu vi hinh vuong"""
def squareP(h):
    return "%0.2f" %(h*2)
# hinh chu nhat
"""Dien tich hinh chu nhat"""
def recA(h, w):
    return "%0.2f" %(h*w)
"""Chu vi hinh chu nhat"""
def recP(h,w):
    return "%0.2f" %((h+w)/2.0)
# Hinh tron
"""Dien tich hinh tron"""
def cirA(r):
    return "%0.2f" %(math.pi * r * r)
"""Chu vi hinh tron"""
def cirP(r):
    return "%0.2f" %(math.pi * 2 * r)
